package lab02.Test09;

/**
 * Created by lenovo on 2017/10/19.
 */
public class Student {
    //属性
    String sid;
    String code;
    String name;
    String sex;
    String age;

    public Student(String s,String c,String n,String se,String a){
        this.setSid(s);
        this.setCode(c);
        this.setName(n);
        this.setSex(se);
        this.setAge(a);


    }


    //行为
    public String toString(){
        return "学号为："+this.getSid()+"\n"+
                "班号为："+this.getCode()+"\n"+
                "名字："+this.getName()+"\n"+
                "性别："+this.getSex()+"\n"+
                 "年龄："+this.getAge();

    }




    //函数

    public String getSid() {
        return sid;
    }

    public void setSid(String sid) {
        this.sid = sid;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getAge() {
        return age;
    }

    public void setAge(String age) {
        this.age = age;
    }
}
